package jws;

import model.User;

import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

/**
 * Created by jackie on 2017/2/19.
 */
@WebService
@SOAPBinding(style = SOAPBinding.Style.RPC)
public interface IMyService {

    @WebResult(name = "addResult")
    public int add(@WebParam(name = "a") int a, @WebParam(name = "b") int b);

    @WebResult(name = "loginUser")
    public User login(@WebParam(name = "username") String username, @WebParam(name = "password") String password);
}
